#ifndef __TollgateEditorOperateLayer_H__
#define __TollgateEditorOperateLayer_H__

#include "cocos2d.h"
#include "cocos-ext.h"
#include "scene/TollgateEditorScene/TollgateEditorLayer/TollgateEditorLayer.h"

USING_NS_CC;
USING_NS_CC_EXT;

class TollgateEditorOperateLayer : public CCLayer{
public:
	TollgateEditorOperateLayer();
	~TollgateEditorOperateLayer();

	static TollgateEditorOperateLayer* create(TollgateEditorLayer* tollgateEditorLayer);
	virtual bool init(TollgateEditorLayer* tollgateEditorLayer);

private:
	CCControlButton* createControlButton(const char* text,const char* font,int fontSize,const char* normalBtn,const char* highLightBtn);

	void addWins();

	void saveToPlistFile(CCObject* pSender, CCControlEvent event);

	void preLvl(CCObject* pSender, CCControlEvent event);

	void nextLvl(CCObject* pSender, CCControlEvent event);

	void changePosType(CCObject* pSender, CCControlEvent event);

private:
	TollgateEditorLayer* m_tollgateEditorLayer;

	CCLabelTTF* m_lvlLabel;
};
#endif // !__TollgateEditorOperateLayer_H__
